package com.mikhailenko.transportMVC.service.es;

import java.util.List;

import com.mikhailenko.transportMVC.exeption.es.BlockNotFoundException;
import com.mikhailenko.transportMVC.model.es.BlockEntity;

public interface BlockService {

    public BlockEntity create(BlockEntity block);
    
    public BlockEntity delete(int id) throws BlockNotFoundException;
    
    public List<BlockEntity> findAll();
    
    public BlockEntity update(BlockEntity block) throws BlockNotFoundException;
    
    public BlockEntity findById(int id);
    
    public BlockEntity findByName(String name);
    
    public List<BlockEntity> findByLayerId(int id);
}
